package com.punai.gk.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.punai.common.annotation.Excel;
import com.punai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 归口模板对象 gk_template
 *
 * @author zxw_
 * @date 2023-01-06
 */
public class GkTemplate extends BaseEntity {

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * $column.columnComment
     */
    private Long companyId;

    /**
     * 归口名称
     */
    private String name;

    /**
     * 归口类型 责任/成本/合约/工种
     */
    @Excel(name = "归口类型 责任/成本/合约/工种")
    private String type;

    /**
     * 可关联费用项类型
     */
    @Excel(name = "可关联费用项类型")
    private String useFeetype;

    /**
     * 部门id
     */
    @Excel(name = "部门id")
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @TableField(fill = FieldFill.INSERT)
    private Long userId;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer orderNum;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setUseFeetype(String useFeetype) {
        this.useFeetype = useFeetype;
    }

    public String getUseFeetype() {
        return useFeetype;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyId", getCompanyId())
                .append("type", getType())
                .append("useFeetype", getUseFeetype())
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("orderNum", getOrderNum())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
